package com.linkage.bookshop.service.inter;

import java.util.List;

import javax.servlet.http.Cookie;

import com.linkage.bookshop.model.Order;
import com.linkage.bookshop.model.Orderline;
import com.linkage.bookshop.model.Trolleyline;

public interface OrderService {
	/* 订单直接提交 */
	public int submitOrder(int bookId, int orderlineAmount,
			String username, String receiverInfo);
	
	/*通过购物车提交订单*/
	public int submitOrder(List<Trolleyline> tls,String receiverInfo,String username);

	/* 确认收货 */
	public boolean confirmReceipt(int id);

	/* 查看订单具体信息 */
	public List<Orderline> checkOrderline(int id);

	/* 列出某用户订单列表 */
	public List<Order> listOrders(String username);

	/* 按状态列出所有订单 */
	public List<Order> listAllOrders(int status);

	/* 改变订单状态 */
	public boolean changeOrderStatus(int orderStatus, int orderId);

	public boolean pay(double price,String username);
	
	/*改变订单行评论状态*/
	public void changeCommentFlag(int orderlineId);
	

}
